{{- if or .Params.diagram .Site.Params.diagram (.HasShortcode "mermaid") (.Page.Store.Get "hasMermaid") -}}
{{ partial "assets/mermaid/js" . }}
{{- end -}}
